<?php $this->load->view('Import/navbar');?>
<h4>专营店营销基金补贴上限额度</h4>
  <!-- Tab panes -->
  <div class="tab-content" style="margin-top: 10px;">
    <div role="tabpanel" class="tab-pane" id="commonProjectFixed">
        <!-- 查询框开始 -->
        <div class="table-responsive">
        <form class="form-inline" method="GET" name="query" id="query">
        <input type="hidden" name="c" id="c" value="Import">
        <input type="hidden" name="m" id="m" value="commonProjectFixed">
          <div class="form-group">
            <label for="year">所属年份：</label>
            <select class="form-control" id="year" name="year">
              <option value="">请选择</option>
          </select>
          </div>
          <div class="form-group">
            <label for="keyword">关键字：</label>
            <input type="text" class="form-control" name="keyword" id="keyword" value="<?=$keyword?>" placeholder="关键字">
          </div>
          <div class="form-group">
            <button type="submit" class="btn btn-default btn-primary">搜索</button>
            <button type="button" class="btn btn-default" role="button" onclick="newWindow('专营店营销基金补贴上限额度','<?php echo printUrl('Import','commonProjectFixedAdd');?>',500,400)">导入补贴上限额度</button>
          </div>
        </form>
        </div>
        <!-- 查询框结束 -->
        <!-- 表格列表 -->
        <div style="margin-top: 10px;">
        <table class="table table-bordered table-condensed">
          <thead>
            <tr>
              <th class="bg-primary text-center">系统城市</th>
              <th class="bg-primary text-center">城市</th>
              <th class="bg-primary text-center">城市等级</th>
              <th class="bg-primary text-center">店头活动</th>
              <th class="bg-primary text-center">新车上市</th>
              <th class="bg-primary text-center">试驾活动</th>
              <th class="bg-primary text-center">保客活动</th>
              <th class="bg-primary text-center">外租场地团购会</th>
              <th class="bg-primary text-center">商超展示</th>
              <th class="bg-primary text-center">外展</th>
              <th class="bg-primary text-center">二网巡展</th>
              <th class="bg-primary text-center">车展外场支持</th>
              <th class="bg-primary text-center">非年度车展站点</th>
              <th class="bg-primary text-center">小篷车巡展</th>
            </tr>
          </thead>
          <tbody>
            <?php foreach ($list as $k => $v) {?>
            <tr>
              <td class="text-center"><?=$v['systemCity']?></td>
              <td class="text-center"><?=$v['city']?></td>
              <td class="text-center"><?=$v['cityLevel']?></td>
              <td class="text-center"><?=(float)$v['moneyData']['money1']?></td>
              <td class="text-center"><?=(float)$v['moneyData']['money2']?></td>
              <td class="text-center"><?=(float)$v['moneyData']['money3']?></td>
              <td class="text-center"><?=(float)$v['moneyData']['money4']?></td>
              <td class="text-center"><?=(float)$v['moneyData']['money5']?></td>
              <td class="text-center"><?=(float)$v['moneyData']['money6']?></td>
              <td class="text-center"><?=(float)$v['moneyData']['money7']?></td>
              <td class="text-center"><?=(float)$v['moneyData']['money8']?></td>
              <td class="text-center"><?=(float)$v['moneyData']['money9']?></td>
              <td class="text-center"><?=(float)$v['moneyData']['money10']?></td>
              <td class="text-center"><?=(float)$v['moneyData']['money11']?></td>
            </tr>
            <?php } ?>
          </tbody>
        </table>
        </div>
        <!-- 分页 -->
        <?=$pager?>
    </div>
  </div>
  <script type="text/javascript">
  $(function(){
      loadYearList('year',<?=$year ? $year : 0?>);
      loadTimeUnitList('timeUnit',<?=$year ? $year : 0?>,<?=$timeUnit ? $timeUnit : 0?>);
  });
  $("#year").change(function(){
      loadTimeUnitList('timeUnit',this.value);
    });
  </script>
<?php $this->load->view('Import/foot');?>